package edu.neusoft.springhtmldemo.service;

import edu.neusoft.springhtmldemo.domain.EarlyWarningLog;
import edu.neusoft.springhtmldemo.mapper.EarlyWarningLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EarlyWarningLogService {
    @Autowired
    private EarlyWarningLogMapper mapper;


    public List<EarlyWarningLog> showEarlyWarningLog() {
        return mapper.showEarlyWarningLog();
    }

    public List<EarlyWarningLog> selectEarlyWarningLog(String alarmNum, String alarmBeginTime, String alarmEndTime, String alarmDetail, String robotNum, String senserNum) {
        return mapper.selectEarlyWarningLog(alarmNum,alarmBeginTime,alarmEndTime,alarmDetail,robotNum,senserNum);
    }
}
